package com.example.test1.controller;

import com.example.test1.dto.ExceptionInfo;
import com.example.test1.exception.TokenConfirmException;
import io.swagger.annotations.Api;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "Base接口",description = "包括token验证失败 的接口")
public class BaseController {

    @GetMapping("noToken")
    @CrossOrigin
    public void noToken() throws TokenConfirmException {
        throw new TokenConfirmException();
    }

}
